<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'store-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'code'); ?>
		<?php echo $form->textField($model,'code',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>55,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'directDial'); ?>
		<?php echo $form->textField($model,'directDial',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'directDial'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contactName'); ?>
		<?php echo $form->textField($model,'contactName',array('size'=>55,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'contactName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo $form->textField($model,'address',array('size'=>55,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'suburb'); ?>
		<?php echo $form->textField($model,'suburb',array('size'=>55,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'suburb'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'city'); ?>
		<?php echo $form->textField($model,'city',array('size'=>55,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'city'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'state'); ?>
		<?php echo $form->dropDownList($model,'state',DataUtil::getStates()); ?>
		<?php echo $form->error($model,'state'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'postcode'); ?>
		<?php echo $form->textField($model,'postcode',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'postcode'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contactPhone'); ?>
		<?php echo $form->textField($model,'contactPhone',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contactPhone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contactFax'); ?>
		<?php echo $form->textField($model,'contactFax',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contactFax'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contactMobile'); ?>
		<?php echo $form->textField($model,'contactMobile',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contactMobile'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contactEmail'); ?>
		<?php echo $form->textField($model,'contactEmail',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contactEmail'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'manager'); ?>
		<?php echo $form->textField($model,'manager',array('size'=>55,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'manager'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'managerEmail'); ?>
		<?php echo $form->textField($model,'managerEmail',array('size'=>55,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'managerEmail'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'administrator'); ?>
		<?php echo $form->textField($model,'administrator',array('size'=>55,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'administrator'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->